package cn.gjxblog.core.convert;

import cn.gjxblog.common.Person;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.springframework.core.convert.converter.Converter;
import org.springframework.core.serializer.support.SerializingConverter;

@RunWith(JUnit4.class)
public class TestConverter {

    @Test
    public void testConverter(){
        Converter converter = new SerializingConverter();
        Object a = converter.convert(new Person("a", 10));
        System.out.println(a);
    }
}
